import axios from 'axios'
export const getType = async ()=>{
  return axios({
    url:'http://localhost:3000/classtype'
  })
}
export const getClassByType = async (type)=>{
  return axios({
    url:'http://localhost:3000/classes',
    params:{type}
  })
}